package com.sc.nft.dto.profit;

import com.sc.nft.enums.AwardsTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


@Data
public class SaveSharePoolDTO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("品牌")
    @NotNull(message = "请选择品牌")
    private Long daoId;

    @ApiModelProperty("分红池名称")
    @NotBlank(message = "请输入分润池名称")
    private String name;

    @ApiModelProperty("奖项类型")
    @NotNull(message = "请选择奖项类型")
    private AwardsTypeEnum awardsType;

    @ApiModelProperty("身份藏品")
    private Long identityCollectionId;

    @ApiModelProperty("直推藏品Id")
    private Long pushCollectionId;

    @ApiModelProperty("直推人数")
    private Integer holdUserCount;

    @ApiModelProperty("统计时长(天)")
    private Integer calDuration;

    @ApiModelProperty("首发发放比例")
    @NotNull(message = "首发比例不能为空")
    @Range(min = 0,max = 1,message = "首发比例取值范围不正确")
    private BigDecimal firstShareRatio;

    @ApiModelProperty("二级发放比例")
    @NotNull(message = "二级比例不能为空")
    @Range(min = 0,max = 1,message = "二级比例取值范围不正确")
    private BigDecimal secondShareRatio;
}
